package com.viu.technology.dto;

public class ResultCode {

    private String code;

    private String msg;



    public static ResultCode SUCCESS = new ResultCode("0000", "success");
    public static ResultCode DATA_CHECK_FAILURE = new ResultCode("1000", "数据校验失败");
    public static ResultCode DATA_INSERT_FAILURE = new ResultCode("1001", "数据插入失败");
    public static ResultCode SECKILL_END = new ResultCode("2001", "秒杀结束");
    public static ResultCode SMS_SEND_FAIL = new ResultCode("3001", "短信发送失败");
    public static ResultCode SMS_CODE_VALID_FAIL = new ResultCode("3002", "短信校验失败");
    public static ResultCode SMS_QUERY_NOT_FOUND = new ResultCode("3003", "找不到该短信");
    public static ResultCode USER_REGISTER_FIAL = new ResultCode("4000", "用户注册失败");
    public static ResultCode USER_LOGIN_FIAL = new ResultCode("401", "用户身份验证失败");
    public static ResultCode USER_PERMISSION_DENIED = new ResultCode("403", "用户账号权限不足");


    public ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {

        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
